package com.cwj.generic;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: Chenwujie
 * @date: 2021-06-16 13:32
 */
public class HasFruit {
    public static void main(String[] args) {
        List<? extends Fruit> list = new ArrayList<>();

        Fruit fruit = list.get(0);
    }


}
